import http from '..';

interface Login {
  username: string;
  password: string;
  rememberMe: boolean;
}

export const setLogin = (data: Login) => http.post('/login', data);

export const setLogout = () => http.post('/logout');

export const getUserInfo = () => http.get('/users/current');
